//  动态配置示例

#include "ElaWidget.h"
#include "ElaMessageButton.h"
#include <QLineEdit>
#include <QComboBox>
#include <QSpinBox>

class DynamicMessageTest : public ElaWidget
{
    Q_OBJECT

  public:
    explicit DynamicMessageTest(QWidget *parent = nullptr);

  private:
    void setupUI();
    void updateMessageButton();

  private Q_SLOTS:
    void onConfigChanged();
    void onShowMessage();

  private:
    ElaMessageButton *m_messageBtn;
    QLineEdit *m_titleEdit;
    QLineEdit *m_textEdit;
    QComboBox *m_typeCombo;
    QComboBox *m_positionCombo;
    QSpinBox *m_durationSpin;
    QSpinBox *m_radiusSpin;
};